home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / tt / pmmu201.lzh / pmmu2.s < prev   
Text File  |  1991-11-13  |  1KB  |  53 lines

  1. *    PMMU patch 2. (Freeware, of course !)
  2. *    This utility converts 32 bit 030 address into 24 bit
  3. *    68000 like address.
  4. *    Written : Monday, November 11th (French Memorial Day)
  5. *    by Vincent Habchi (Elendir@inf.enst.fr).
  6.  
  7. *    Celui-ci marche, n'est ce pas Oya ?
  8.  
  9. pmmu
  10.     pea.l    patch
  11.     move.w    #$26,-(sp)        Supexec.
  12.     trap    #14
  13.     addq.l    #6,sp
  14.     
  15.     clr.w    -(sp)
  16.     trap    #1            Et c'est fini.
  17.     
  18. *
  19.  
  20. patch
  21.     lea.l    table,a0        Adresse de la table.
  22.     movea.w    #$700,a1
  23.     moveq.l    #31,d0            Compteur.
  24. .tabl
  25.     move.l    (a0)+,(a1)+        Copie la nouvelle table.
  26.     dbra.w    d0,.tabl
  27. *
  28.     lea.l    newcrp,a0        Met à jour le CRP.
  29.     pmove.d    (a0),crp
  30.     addq.w    #8,a0
  31.     pmove.l    (a0),tc            Et le TC.
  32.     addq.w    #4,a0            Désactive les TTn.
  33.     pmove.l    (a0),tt0
  34.     pmove.l    (a0),tt1
  35. *
  36.     pflusha
  37.     rts                Et fin.
  38.  
  39. table    dc.l    $00000001,$00100001,$00200001,$00300001
  40.     dc.l    $00400001,$00500001,$00600001,$00700001
  41.     dc.l    $00800001,$00900001,$00a00001,$00b00001
  42.     dc.l    $00c00001,$00d00001,$00e00001,$00000742
  43.     dc.l    $00f00001,$00f10001,$00f20001,$00f30001
  44.     dc.l    $00f40001,$00f50001,$00f60001,$00f70001
  45.     dc.l    $00f80001,$00f90001,$00fa0001,$00fb0001
  46.     dc.l    $00e00001,$00e10001,$00e20001,$00ff0041
  47.  
  48. newcrp    dc.l    $00100002,$00000700
  49.     dc.l    $80c84440
  50.     dc.l    $00000000
  51.     
  52. *    Assemblied with Devpack 2.23
  53. *    (P) 11/91.